package com.ayh.campusfun.dto;

import com.ayh.campusfun.common.annotation.validators.PasswordEqual;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ayh
 * @create 2021/3/26 0026 9:49
 * 用户注册参数
 */

@Getter
@Setter
@PasswordEqual
public class RegisterDTO {
    private String phone;
    private String email;
    @NotEmpty
    @NotNull
    private String password;
    @NotEmpty
    @NotNull
    private String rePassword;
    @NotEmpty
    @NotNull
    private String authCode;
    private String registerType;

}
